<?php
//
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return['set']=$this->plugin_setting('basic');
$keywords=$this->plugin_setting('search');
$return['params']=array('jy'=>1);
if($_RQ['op']=='main'){
	$return=model('jy_weishop/page/goods_index')->getmain($return);
	$shoplevelid=pdo_getcolumn('jy_area_psi_level',array('uniacid'=>$_SESSION['uniacid'],'ismerch'=>1),'shoplevelid');
	$member=pdo_get('jy_weishop_member',array('mid'=>$_SESSION['uid'],'uniacid'=>$_SESSION['uniacid'],'merchid'=>0),array('level','viptime'));
	if($member['level']!=$shoplevelid){
		exi('您没有权限浏览该页面！','error','jy_shopmerch/index/');
	}
	$return['params']['levelid']=$shoplevelid;
	$sharelink='jy_shopmerch/goods.index//fromuser='.$_SESSION['uid'];
	$return['sharedata']['link']=custom_url($sharelink,true);
	$keywords='商品列表,'.$return['setting']['share_keywords']?:$return['sharedata']['desc'];
	$keywords=$pcateinfo['keywords']?:$keywords;
	set_html('title','商品列表');
	set_html('description',$desc);
	set_html('keywords',$keywords);
	exi($return);
}	
?>